package ro.dta.idbi.interfaces.ui;

import javax.swing.JPanel;

/**
 * Interface for the right panel of the main interface
 * 
 * @author Tudor Dobrila
 * 
 */
public interface IRightPanel {

	/**
	 * Set the title displayed at the top of the panel
	 * 
	 * @param title
	 *            New title to display
	 */
	void setTitle(String title);

	/**
	 * Set the new content in the center part of the right panel
	 * 
	 * @param newPanel
	 *            New content to display
	 * @param fill
	 *            Can take one of the values GridBagConstraints.HORIZONTAL,
	 *            GridBagConstraints.VERTICAL, GridBagConstraints.BOTH
	 */
	void setContent(JPanel newPanel, int fill);

	/**
	 * Get the content displayed in the center of this panel
	 * 
	 * @return Content displayed in the center of this panel
	 */
	JPanel getContent();

	/**
	 * Display the loading image
	 */
	void showLoading();

	/**
	 * Hide the loading image
	 */
	void hideLoading();

}
